class StrategyBase:
    """策略基类"""
    def __init__(self):
        self.position = None
        
    def on_bar(self, bar):
        """K线数据更新时的回调"""
        pass 